<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="__CSS__/footer.css" />
	<link rel="stylesheet" type="text/css" href="__CSS__/Login.css" />
	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
<script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
<script type="text/JavaScript">
$(function(){
    $('#form1').ajaxForm({
        //beforeSubmit:  function(){alert("before");},  // pre-submit callback
        success:       complete,  // post-submit callback
        error:function(){alert("error");},
        dataType: 'json'
    });
    
    function complete(data){
        if (data.status==1)
        {
        	if(data.data!=0)
        		window.location=data.data;
        	else
        		window.location=window.location.href;
        }else{
            $('#result').html(data.info).show();
        }
    }
});
</script>
<title>ISit账户</title> 
</head>

<body>
<?php if($role == '访客'): ?><div class="logonHeader">
		<div class="blank"></div>
		<div class="logonHeaderImage">
			<img src="../Public/image/SIT_logo.jpg" />
		</div>
		<div class="Headertext">
			iSIT
		</div>
	</div>
	<div class="container">
		<div class="textShow">
			<h1 class="redtext">账户</h1>
			<p>登录	iSIT 帐户后，即可享受 iSIT 提供的更多服务。</p>
			<P>	在右侧登录</p>
		</div>
		<div class="imgShowContainer">
			<img src="../Public/image/img_bulletin.jpg" class="imgShow" />guide<br />
			<img src="../Public/image/img_news.jpg" class="imgShow" />最新时事<br />
			<img src="../Public/image/img_question.jpg" class="imgShow" />有问必答
			
		</div>
		
		<div class="logintext" align="center">
		
			<form id='form1' method="post" action="__APP__/Auth/auth">
			<br /><br  /><br  />
			登陆名<input type="text" name="no" maxlength="20"  class="logininputname"/><br />
			密码<input type="password" name="password" maxlength="20"  class="logininputpassword"/><br />
			记住我<input type="checkbox" name=remember class="rememberme">
			<input type=hidden value=<?php echo ($url); ?> name=url>
			<input type="submit" value="登陆" class="loginbutton" />
			</form>
		</div>
		
	</div>
<?php else: ?>	
	<div align="center">
	<h3>已登录：<?php echo ($role); ?>,<?php echo ($no); ?>,<?php echo ($name); ?> <a href="__APP__/Auth/logout">注销</a></h3>
	<h4><a href="__APP__/index/index">访问主页</a>|<a href="javascript:history.back()">返回登陆前界面</a></h4>
	</div><?php endif; ?>
<!-- layout::Auth:footer::0 -->
</body>
</html>